package lbframework.gui;

import lbframework.bean.dialog.LBDialog;

public class SplashScreenGUI extends LBDialog {

    public SplashScreenGUI() throws Exception {
        initComponents();

        centralizarForm();

        this.setModal(true);

    }

    public void setStatus(String s) throws Exception {
        lblStatus.setText(s);
    }

    public void setSobre(String i_programa, String i_versao, String i_data) {
        lblPrograma.setText(i_programa);
        lblVersao.setText("Versão " + i_versao);
        lblData.setText("Data: " + i_data);
    }

    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        lblVersao = new lbframework.bean.label.LBLabel();
        lblData = new lbframework.bean.label.LBLabel();
        LBLabel2 = new lbframework.bean.label.LBLabel();
        lblStatus = new lbframework.bean.label.LBLabel();
        lblPrograma = new lbframework.bean.label.LBLabel();
        LBLabel1 = new lbframework.bean.label.LBLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        setUndecorated(true);
        getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

        lblVersao.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        lblVersao.setText("X.X.X");
        getContentPane().add(lblVersao, new org.netbeans.lib.awtextra.AbsoluteConstraints(240, 110, 130, -1));

        lblData.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        lblData.setText("XX/XX/XXXX");
        getContentPane().add(lblData, new org.netbeans.lib.awtextra.AbsoluteConstraints(240, 130, 130, -1));

        LBLabel2.setText("Copyright © LB Software");
        getContentPane().add(LBLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(250, 220, -1, -1));

        lblStatus.setText(" ");
        getContentPane().add(lblStatus, new org.netbeans.lib.awtextra.AbsoluteConstraints(9, 234, 380, -1));

        lblPrograma.setForeground(new java.awt.Color(51, 51, 51));
        lblPrograma.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        lblPrograma.setText("Programa");
        lblPrograma.setFont(new java.awt.Font("Tahoma", 1, 18));
        getContentPane().add(lblPrograma, new org.netbeans.lib.awtextra.AbsoluteConstraints(170, 10, 200, 30));

        LBLabel1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        LBLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/lbframework/img/sobre.png"))); // NOI18N
        getContentPane().add(LBLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 390, 260));

        pack();
    }// </editor-fold>//GEN-END:initComponents

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private lbframework.bean.label.LBLabel lblData;
    private lbframework.bean.label.LBLabel lblPrograma;
    private lbframework.bean.label.LBLabel lblStatus;
    private lbframework.bean.label.LBLabel lblVersao;
    private lbframework.bean.label.LBLabel LBLabel1;
    private lbframework.bean.label.LBLabel LBLabel2;
    // End of variables declaration//GEN-END:variables
}